<div class="dir-head" ng-show="dir.head" ng-click="clickHead()">
    <span ng-bind="dir.head.text"></span>
    <div class="pull-right">
        <div class="fold icon" ng-show="dir.children">+</div>
    </div>
</div>
<div class="dir-body" ng-if="dir.children">
    <div class="dir-item" ng-repeat="item in dir.children" ng-class="{active: item.active}" ng-click="checkItem(item)">
        <div class="icon"></div><span class="text" ng-bind="item.text"></span>
    </div>
</div>